package org.exam.system.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Employee {
    private Long id;
    private String username;
    private String phone;
    private String email;
    private String salt;
    private String password;
    private Integer age;
    private Integer state;
    private Long loginInfoId;
//    创建一个对象集合来存储角色对象
    private List<Role> dbRoles = new ArrayList<>();

//    =======================================================================================
    private List<Long> roles = new ArrayList<>();

}
